<?php
class Ab_View{

	function render($file_path,$template_params=array()){ 
		if(!is_file(VIEWS_FOLDER.$file_path)){			
			throw new ViewNotFoundException();
		}
		
		ob_start();
		extract($template_params, EXTR_OVERWRITE);		
		include($file_path);
		return ob_get_clean();
	}
}

?>
